home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / dynodump / Makefile.in.in < prev    next >
Encoding:
Makefile  |  1995-07-08  |  2.4 KB  |  96 lines

  1. /* Makefile for dynodump subdirectory in XEmacs
  2.    Copyright (C) 1995 Board of Trustees, University of Illinois
  3.  
  4. This file is part of XEmacs.
  5.  
  6. XEmacs is free software; you can redistribute it and/or modify it
  7. under the terms of the GNU General Public License as published by the
  8. Free Software Foundation; either version 2, or (at your option) any
  9. later version.
  10.  
  11. XEmacs is distributed in the hope that it will be useful, but WITHOUT
  12. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13. FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14. for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with XEmacs; see the file COPYING.  If not, write to the Free
  18. Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Avoid trouble on systems where the `SHELL' variable might be
  21.    inherited from the environment. */
  22. SHELL = /bin/sh
  23.  
  24. /* Some people use these in paths they define.  We don't want their paths
  25.    getting changed on them. */
  26. #undef sparc
  27. #undef sun
  28. #undef unix
  29. #undef i386
  30. #undef ppc
  31. #undef sgi
  32.  
  33. /* ==================== Things `configure' will edit ==================== */
  34.  
  35. CC=@CC@
  36. CFLAGS=@CFLAGS@
  37. ARCH=@dynodump_arch@
  38.  
  39. /* Where to find the source code.  This is set by the configure
  40.    script's `--srcdir' option.  However, the value of ${srcdir} in
  41.    this makefile is not identical to what was specified with --srcdir,
  42.    since the variable here has `/dynodump' added at the end. */
  43. srcdir=@srcdir@
  44. VPATH=@srcdir@
  45.  
  46. /* ========================= start of cpp stuff ========================= */
  47.  
  48. #define NO_SHORTNAMES
  49. #define THIS_IS_YMAKEFILE
  50. #define NOT_C_CODE
  51. #include "../src/config.h"
  52.  
  53. #ifdef USE_GCC
  54. # define PIC_ARG -fpic
  55. #else
  56. # define PIC_ARG -K pic
  57. #endif
  58.  
  59. INCLUDES = -I${srcdir} -I${srcdir}/$(ARCH)
  60. ALL_CFLAGS = ${CFLAGS} PIC_ARG ${INCLUDES}
  61. OBJS = _relocate.o dynodump.o syms.o
  62.  
  63. .c.o:
  64.     $(CC) -c $(ALL_CFLAGS) $<
  65.  
  66. /* If we don't need dynodump, then don't do anything. */
  67. #ifdef DYNODUMP
  68. all:: dynodump.so
  69. #else
  70. all::
  71. #endif
  72.  
  73. dynodump.so: ${srcdir}/_dynodump.h $(OBJS)
  74.     $(CC) -o dynodump.so -G $(OBJS) -lelf
  75.  
  76. _relocate.o: ${srcdir}/$(ARCH)/_relocate.c ${srcdir}/$(ARCH)/machdep.h
  77.     $(CC) -c $(ALL_CFLAGS) ${srcdir}/$(ARCH)/_relocate.c
  78.  
  79. mostlyclean:
  80.     -rm -f *.o \#*
  81.  
  82. clean: mostlyclean
  83.     -rm -f *.so *.so.1
  84.  
  85. distclean: clean
  86.     -rm -f Makefile Makefile.in
  87.  
  88. realclean: distclean
  89.     rm -f TAGS
  90.  
  91. versionclean:
  92.     true
  93.  
  94. extraclean: realclean
  95.     -rm -f *~ \#*
  96.